function CAKp(){
	this.tab=this.InitTab();
}

CAKp.prototype.InitTab=function(){
	var element;
	layui.use('element', function(){
	   element = layui.element;
	});
	return element;
}

CAKp.prototype.OpTab=function(tabindex,obj){
	this.tab.tabChange('tabcontent', tabindex);
	
}
CAKp.prototype.openadd=function(){
	top.mylayui.open({
         type: 2,
         title: '模板添加',
         shadeClose: true,
         shade: 0.5,
         area: ['1000px', '600px'],
         content: 'civilasskp/civilass_kp_edit'
       }); 

}

var vCAKp=null;
$(function(){
	vCAKp=new CAKp();
})